import React, { Component } from "react";
import "./Personal.scss";
import Nav from '../nav/nav';
import { withRouter } from "react-router-dom"; //一键设置路由
class Personal extends Component {
  ToLogin = (params) => {
    this.props.history.push("login");
  };
  Register = (params) => {
    this.props.history.push("register");
  };
  render() {
    return (
      <div className="bigBox">
        <Nav></Nav>
        {/* logo开始 */}
        <div className="logoWrap">
          <img
            className="logoImg"
            src="//yanxuan.nosdn.127.net/39c5e4583753d4c3cb868a64c2c109ea.png"
            alt=""
          />
        </div>
        {/* logo结束 */}
        {/* 按钮开始 */}
        <div className="btnWrap">
          <div className="but01" onClick={this.ToLogin}>
            <i className="icon icon-phone"></i>登录
          </div>
          <br />
          <div className="but02" onClick={this.Register}>
            <i className="icon icon-my "></i>注册
          </div>
        </div>
        {/* 按钮结束 */}
      </div>
    );
  }
}
export default withRouter(Personal);
